home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / ryork21.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  1.5 KB  |  70 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=ryork21.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: ryork21.SH,v 3.1 86/12/24 10:44:04 pb Rel $"
  9. #
  10. ##################################################
  11. ##################################################
  12. ##############
  13. ############## configure for york directory (old D2.1 format)
  14. ##############
  15. ##################################################
  16. ##################################################
  17.  
  18. # the directory to search for files in
  19. directory $datadir
  20.  
  21. # enable tracing
  22. verbose 1
  23.  
  24. # output format (direction overridden)
  25. output forward short york2.1
  26.  
  27. # the comment file to filter
  28. comment hdr.file
  29.  
  30. #    context        subnet
  31. #    name
  32. context    FTP        JANET
  33. context    FTP        PSS
  34. context    JTMP        JANET
  35. context    JTMP        PSS
  36. #O context    JTMP-FILES    JANET
  37. #P context    JTMP-FILES    PSS
  38. #O context    JTMP-REG    JANET
  39. #P context    JTMP-REG    PSS
  40. context    Mail        JANET
  41. context    Mail        PSS
  42. #O context    Mail-telex    TELEX
  43. #O context    Mail-x29    JANET
  44. #P context    Mail-x29    PSS
  45. context    ts29        JANET
  46. context    Ts29        PSS
  47. context    X29        JANET
  48. context    X29        PSS
  49. #O context    YBTS        JANET
  50. #P context    YBTS        PSS
  51. #O context    YBTS-NODE    JANET
  52. #P context    YBTS-NODE    PSS
  53. !GROK!THIS!
  54. then
  55.     : OK
  56. else
  57.     echo "    " Failed to create $outputfile.$$
  58.     exit 1
  59. fi
  60. if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  61. then
  62.     rm -f $outputfile.$$
  63.     echo "    " $outputfile not affected
  64. elif mv $outputfile.$$ $outputfile
  65. then
  66.     echo "    " $outputfile updated
  67. else
  68.     echo "+++    " $outputfile left in $outputfile.$$
  69. fi
  70.